
package cn.org.chiss.rhin._2015.base.document;

import cn.org.chiss.rhin._2015.base.object.RegObject;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;


/**
 * 关联关系
 * 
 * <p>Association complex type的 Java 类。
 * 
 * <p>以下模式片段指定包含在此类中的预期内容。
 * 
 * <pre>
 * &lt;complexType name="Association"&gt;
 *   &lt;complexContent&gt;
 *     &lt;extension base="{http://www.chiss.org.cn/rhin/2015}RegObject"&gt;
 *       &lt;sequence&gt;
 *         &lt;element name="typeCode" type="{http://www.chiss.org.cn/rhin/2015}AssociationType"/&gt;
 *         &lt;element name="sourceObject" type="{http://www.chiss.org.cn/rhin/2015}AssociationObject"/&gt;
 *         &lt;element name="targetObject" type="{http://www.chiss.org.cn/rhin/2015}AssociationObject"/&gt;
 *       &lt;/sequence&gt;
 *     &lt;/extension&gt;
 *   &lt;/complexContent&gt;
 * &lt;/complexType&gt;
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Association", propOrder = {
    "typeCode",
    "sourceObject",
    "targetObject"
})
@EqualsAndHashCode(callSuper=false)
@Data
@Accessors(chain = true)
public class Association extends RegObject {
    /**
     * 关联类型 值域见总则B.9
     * c必填
     * m必填
     */
    @XmlElement(required = true)
    protected AssociationType typeCode;
    /**
     * 关联源
     * c必填
     * m必填
     */
    @XmlElement(required = true)
    protected AssociationObject sourceObject;
    /**
     * 关联目标
     * c必填
     * m必填
     */
    @XmlElement(required = true)
    protected AssociationObject targetObject;


}
